Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Fortran interface for FillPatch for face variables #3541

Merged
merged 1 commit into from
Sep 14, 2023

Conversation

WeiqunZhang
Copy link
Member

Summary

The stride was wrong when copying MultiFab pointers from a Fortran array to a Vector of Array of MultiFab pointers.

This also fixes cases when the user passes t_new followed by t_old, instead of the other order. The issue was then teps was negative. This was a minor issue, because the FillPatch function in C++ does not care about the order.

Additional background

#327 (comment)

Checklist

The proposed changes:

  • fix a bug or incorrect behavior in AMReX
  • add new capabilities to AMReX
  • changes answers in the test suite to more than roundoff level
  • are likely to significantly affect the results of downstream AMReX users
  • include documentation in the code and/or rst files, if appropriate

The stride was wrong when copying MultiFab pointers from a Fortran array to
a Vector of Array of MultiFab pointers.

This also fixes cases when the user passes t_new followed by t_old, instead
of the other order. The issue was then teps was negative. This was a minor
issue, because the FillPatch function in C++ does not care about the order.
@WeiqunZhang WeiqunZhang requested a review from kngott September 13, 2023 16:41
@WeiqunZhang WeiqunZhang merged commit 5829296 into AMReX-Codes:development Sep 14, 2023
@WeiqunZhang WeiqunZhang deleted the fix_ffpf branch September 14, 2023 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants